import ajax from '../utils/request.js'

// 上传头像
export function uploadFile (data) {
  return ajax({
    url: '/mp/v1_0/user/photo',
    method: 'patch',
    data
  })
}

// 修改用户信息
export function setUserInfo (data) {
  return ajax({
    url: '/mp/v1_0/user/profile',
    method: 'PATCH',
    data
  })
}
